package com.hailian.fintech.hlfinanceserver.web;


import com.hailian.fintech.hlcomm_interfaceserver.result.ResultInfo;
import com.hailian.fintech.hlfinanceserver.service.IDuizhangService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wk
 * @since 2020-05-23
 */
@RestController
@RequestMapping("/duizhang")
public class DuizhangController {

    @Autowired
    private IDuizhangService iDuizhangService;

    @RequestMapping("/findAll")
    public ResultInfo findAll(){
        return new ResultInfo().success(iDuizhangService.list());
    }

}

